<?php
namespace hbynlsl\spf;

class Constant {
    // 响应状态
    const RESPONSE_STATUS = [
        // RESTful请求
        '10000' =>	'请求响应成功',
        '10001' =>	'获取主键id资源成功',
        '10002' =>	'获取资源所有数据成功',
        '10003' =>	'资源添加成功',
        '10004' =>	'资源更新成功',
        '10005' =>	'资源删除成功',
        '10006' =>	'获取分页资源数据成功',
        '50000' =>	'网络请求失败',
        '50001' =>	'请求资源不存在',
        '50002' =>	'未知HTTP请求方法',
        '50003' =>	'请求动作(action)不存在',
        '50004' =>	'数据表模型类不存在',
        '50005' =>	'指定主键id资源不存在',
        '50006' =>	'获取资源所有数据失败',
        '50007' =>	'资源添加失败',
        '50008' =>	'更新资源必须指明主键字段',
        '50009' =>	'更新主键资源失败',
        '50010' =>	'删除资源必须指明主键字段',
        '50011' =>	'删除主键资源失败',

        // auth认证',
        '10100' =>	'token返回成功',
        '10101' =>   '手机验证码正确',
        '10102' =>   '实名认证成功',
        '10103' =>  '手机验证码发送成功',
        '50011' =>	'未包含token信息',
        '50012' =>	'token已过期，请重新登录！',
        '50013' =>	'token校验失败',
        '50100' =>	'请传入正确的手机号',
        '50101' =>	'手机验证码不正确',
        '50102' =>	'实名认证失败',
        '50103' =>	'手机验证码发送失败',
    ];
}